From: Paul Eggert Date: Mon, 10 Dec 2012 01:44:32 +0000 (-0800) Subject: * fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int, X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~3615^2~1395^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5f460827dd14fbfae26ac8451cedd4446817d1ec;p=emacs.git * fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int, for string length. --- diff --git a/src/ChangeLog b/src/ChangeLog index 222be9575b8..dd51eb9ed3b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-12-10 Paul Eggert + + * fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int, + for string length. + 2012-12-08 Eli Zaretskii * w32.c (unsetenv): Return 0 if the input string is too long. diff --git a/src/fileio.c b/src/fileio.c index de3b84ba95d..56c340bfa40 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1590,7 +1590,7 @@ those `/' is discarded. */) { char *nm, *s, *p, *o, *x, *endp; char *target = NULL; - int total = 0; + ptrdiff_t total = 0; bool substituted = 0; bool multibyte; char *xnm;